﻿using SqlSugar;

namespace WebAssistant.BusinessLogic.Model
{
    /// <summary>
    /// 打印机对象
    /// </summary>
    [SugarTable("printers")]
    public class Printers
    {
        /// <summary>
        /// 关键字，用于安装服务和关联语言资源
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnName = "key")]
        public string Key { get; set; }

        /// <summary>
        /// 默认打印机
        /// </summary>
        [SugarColumn(ColumnName = "default")]
        public string Default { get; set; }

        /// <summary>
        /// 打印模式
        /// 0.系统打印；1.预览打印
        /// </summary>
        [SugarColumn(ColumnName = "mode")]
        public int Mode { get; set; }

        /// <summary>
        /// 静默打印
        /// </summary>
        [SugarColumn(ColumnName = "silent")]
        public bool Silent { get; set; }
    }
}
